import request from '@/utils/request'

//添加
export function addMq(data) {
  return request({
    url: `/tool/mq/insertMq`,
    method: 'post',
    data
  })
}


//获取列表
export function mqList(data) {
  return request({
    url: `/tool/mq/selectMqPage`,
    method: 'get',
    params: data
  })
}


//获取单个数据
export function viewMq(data) {
  return request({
    url: `/tool/mq/selectMq/${data}`,
    method: 'get'
  })
}

//更新
export function editMq(data) {
  return request({
    url: `/tool/mq/updateMq`,
    method: 'put',
    data
  })
}

//删除
export function deleteMq(data) {
  return request({
    url: `/tool/mq/deleteMq/${data}`,
    method: 'delete'
  })
}



